package com.rd.student.dashuju.wangbo.exercise02;

import java.util.ArrayList;
import java.util.Random;

public class RandomTest01 {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList1 = new ArrayList();
        for (int i = 0; i < 10;i++){
            Random random = new Random();
            int i1 = random.nextInt(100)+1;
            arrayList.add(i1);
            if (i1>10){
                arrayList1.add(i1);
            }
        }
        for (Object o : arrayList){
            System.out.println(o);
        }
        System.out.println("---------");
        for (Object o2 : arrayList1){
            System.out.println(o2);
        }
    }
}
